package annotool.select;

import java.io.Serializable;

import mpicbg.imagefeatures.Feature;

public class ClassFeatures implements Comparable< ClassFeatures >, Serializable
{
	Feature feature;
	float mScore;
	int position1, position2;
	
	//blank constructor
	public ClassFeatures()
	{
		
	}
	//constructor with arguments
	public ClassFeatures(Feature feature, float mScore, int position1, int position2)
	{
		this.feature = feature;
		this.mScore = mScore;
		this.position1 = position1;
		this.position2 = position2;
	}
	
	public int compareTo(ClassFeatures cf)
	{
		return mScore < cf.mScore ? 1 : mScore == cf.mScore ? 0 : -1;
	}
}
